{extend name="public/base" /}
{block name="body"}
<div class="row maintop">
    <div class="col-xs-12 col-sm-2">
        <a href="{:url('Managegroup/GroupAdd')}">
            <button class="btn btn-xs btn-danger">
                <i class="ace-icon fa fa-bolt bigger-110"></i>
                添加用户组
            </button>
        </a>
    </div>
</div>
<div class="row">
    <div class="col-xs-12">
        <div>
                <input type="hidden" name="checkk" id="checkk" value="1"/><!--用于判断操作类型-->
                <table width="100%" class="table table-striped table-bordered table-hover" id="dynamic-table">
                    <thead>
                    <tr>
                        <th width="10%">ID</th>
                        <th width="21%">用户组名</th>
                        <th width="21%">状态</th>
                        <th width="30%">添加时间</th>
                        <th width="18%" style="border-right:#CCC solid 1px;">操作</th>
                    </tr>
                    </thead>

                    <tbody>

                    {volist name="list" id="v"}
                        <tr>
                            <td height="28">{$v.id}</td>
                            <td>{$v.title}</td>
                            <td id="h{$v.id}">
                                <a class="red _set_status" href="javascript:;" attr-id="{$v.id}" attr-url="{:url('Managegroup/GroupSetStatus')}"  title="已开启">
									{if condition="$v['status'] eq 1"}
                                         <button class="btn btn-minier btn-yellow">状态开启</button>
                                    {else/}
										<button class="btn btn-minier btn-danger">状态禁用</button>
									{/if}
                                </a>
                            </td>
                            <td>{$v.addtime|date='Y-m-d',###}</td>
                            <td>
                                <div class="hidden-sm hidden-xs action-buttons">
                                    <a class="blue" href="{:url('Managegroup/GroupAccess',array('id'=>$v['id']))}"
                                       title="配置规则">
                                        <i class="ace-icon fa fa-cog bigger-130"></i>
                                    </a>
                                    <a class="green" href="{:url('Managegroup/GroupAdd',array('id'=>$v['id']))}" title="修改">
                                        <i class="ace-icon fa fa-pencil bigger-130"></i>
                                    </a>
                                    <a class="red _del" href="javascript:;" attr-id="{$v.id}" attr-url="{:url('Managegroup/GroupDel')}" title="删除">
                                        <i class="ace-icon fa fa-trash-o bigger-130"></i>
                                    </a>
                            </td>
                        </tr>
                    {/volist}
                    <tr>
                        <td height="50" colspan="6" align="left">&nbsp;</td>
                    </tr>
                    </tbody>
                </table>
        </div>
    </div>
</div>
{/block}